package com.ruoyi.web.hnsdsa.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 member
 *
 * @author ruoyi
 * @date 2022-02-18
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Member extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 同步用户id */
    @Excel(name = "同步用户id")
    private Long loginUserId;
    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;
    /** 所属单位 */
    @Excel(name = "所属单位")
    private Long deptId;
    /** 密码 */
    @Excel(name = "密码")
    private String password;
    /** 0未知1是2否 */
    @Excel(name = "0未知1是2否")
    private Integer memberState;
    /** 手机号 */
    @Excel(name = "手机号")
    private String phoneNumber;
    /** 微信openid */
    @Excel(name = "微信openid")
    private String wxOpenId;
    /** 登录用户名称 */
    @Excel(name = "登录用户名称")
    private String loginUsername;
    /** 身份证号 */
    @Excel(name = "身份证号")
    private String certnumber;
    /** 0未知1是2否 */
    @Excel(name = "0未知1是2否")
    private Integer realType;
    /** 所属机构id */
    @Excel(name = "所属机构id")
    private Integer orgId;
    @TableField(exist = false)
    private String memberOrgName;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("loginUserId", getLoginUserId())
            .append("userName", getUserName())
            .append("deptId", getDeptId())
            .append("password", getPassword())
            .append("deleted", getDeleted())
            .append("memberState", getMemberState())
            .append("phoneNumber", getPhoneNumber())
            .append("wxOpenId", getWxOpenId())
            .append("loginUsername", getLoginUsername())
            .append("certnumber", getCertnumber())
            .append("realType", getRealType())
            .append("orgId", getOrgId())
        .toString();
    }
}
